package com.ruoyi.product.controller;

import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.product.domain.Count;
import com.ruoyi.product.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/count")
public class CountController {
    @Autowired
    private CountService countService;
    @RequiresPermissions("count:count:list")
    @GetMapping("list")
    public List<Count> selectList(){
        return countService.selectList();
    }
}
